/*
 * @Author: DUST
 * @Date: 2024-01-20 11:25:44
 * @LastEditors: DUST
 * @LastEditTime: 2024-01-20 11:25:44
 * @FilePath: \business-card-system\server\app\router\company.ts
 * @Description: 
 * undefined
 */
import koaRouter from "koa-router";
import CompanyController from "../controller/CompanyController";

const companyRouter = new koaRouter();

companyRouter.prefix("/company");

// 获取公司信息
companyRouter.get("/info/:unitId", CompanyController.getCompanyInfo);
// 获取公司信息
companyRouter.get("/addlist/:unitId", CompanyController.getCompanyAddrList);
// 新增公司信息
companyRouter.post("/add", CompanyController.addCompany);
// 编辑公司信息
companyRouter.put("/edit", CompanyController.editCompany);

export default companyRouter;